package net.yeah.mickey_zhouyou.database.util.string_policy;

import java.util.Date;

import net.yeah.mickey_zhouyou.database.util.StringUtil;

public class ConvertToDate implements IStringToObjectPolicy<Date> {

	@Override
	public Date convert(String str) {
		if (StringUtil.isEmpty(str))
			return null;
		return new Date(Long.valueOf(str));
	}

}
